package com.totoro.mapper;

import com.totoro.pojo.ColorRgb;
import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author TOTORO
 * @date 2021/7/5 18:37
 */
@Repository
public interface ColorRgbMapper {
    @Results({
            @Result(property = "id", column = "id", id = true),
            @Result(property = "colorName", column = "color_name"),
            @Result(property = "colorRgb", column = "color_rgb"),
            @Result(property = "createTime", column = "create_time"),
            @Result(property = "updateTime", column = "update_time")
    })
    @Select("select * from color_rgb")
    List<ColorRgb> findAllColor();
}
